NEWSBLUR_TARGET = $$qtLibraryTarget(newsblurservice)
NEWSBLUR_DESTDIR = lib
NEWSBLUR_INCLUDEPATH = "include"
newsblur_build_lib {
    HEADERS += ./src/newsblurservice.h \
        ./src/items/newsbluritem.h \
        ./src/items/storyitem.h \
        ./src/items/feeditem.h \
        ./src/items/folderitem.h \
        ./src/items/starredgroup.h \
        ./src/items/everythinggroup.h \
        ./src/items/rootitem.h \
        ./src/replies/newsblurreply.h \
        ./src/newsblurclient.h \
        ./src/globals.h \
        ./src/replies/updatetreereply.h \
        ./src/replies/storylistreply.h \
        ./src/replies/feedstorylistreply.h \
        ./src/replies/feedsearchresultsreply.h \
        ./src/replies/unreadcountsreply.h \
        ./src/replies/feedclassifiersreply.h \
        ./src/feedclassifiersmodel.h \
        ./src/feedclassifiers.h \
        ./src/replies/savefeedclassifiersreply.h \
        ./src/replies/markstoriesreadreply.h

    SOURCES += ./src/newsblurservice.cpp \
        ./src/items/newsbluritem.cpp \
        ./src/items/storyitem.cpp \
        ./src/items/feeditem.cpp \
        ./src/items/folderitem.cpp \
        ./src/items/starredgroup.cpp \
        ./src/items/everythinggroup.cpp \
        ./src/items/rootitem.cpp \
        ./src/replies/newsblurreply.cpp \
        ./src/newsblurclient.cpp \
        ./src/replies/updatetreereply.cpp \
        ./src/replies/storylistreply.cpp \
        ./src/replies/feedstorylistreply.cpp \
        ./src/replies/feedsearchresultsreply.cpp \
        ./src/replies/unreadcountsreply.cpp \
        ./src/replies/feedclassifiersreply.cpp \
        ./src/feedclassifiersmodel.cpp \
        ./src/globals.cpp \
        ./src/feedclassifiers.cpp \
        ./src/replies/savefeedclassifiersreply.cpp \
        ./src/replies/markstoriesreadreply.cpp

    INCLUDEPATH += ./src \
        ./src/items \
        ./src/replies

    CONFIG += create_prl    
}else {
    CONFIG += link_prl
    RELPATH = "../plugins/newsblur"
    NEWSBLUR_LIBFILE_PATH = -L$$quote(\"$$RELPATH/$$NEWSBLUR_DESTDIR\") -l$$NEWSBLUR_TARGET
    LIBS+= $$NEWSBLUR_LIBFILE_PATH
    INCLUDEPATH += $$quote($$RELPATH/$$NEWSBLUR_INCLUDEPATH)

    RESOURCES += \
        $$RELPATH/newsblur.qrc

    OTHER_FILES += $$RELPATH/images/newsblur.png
}
